package com.qf.handler;

//import com.event.util.EventHandler;
//import com.event.util.EventType;
//import com.qf.entity.Hotal;
//import com.qf.service.CityService;
//import com.qf.util.EventTypeContact;
//import lombok.extern.slf4j.Slf4j;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.stereotype.Component;
//
//@Component
//@EventType(EventTypeContact.HOTAL_INSERT)
//@Slf4j
//public class HotalInsertHandler implements EventHandler<Hotal> {
//
//    @Autowired
//    private CityService cityService;
//
//    @Override
//    public void msgHandler(Hotal hotal) {
//        log.info("城市服务接收到酒店新增的事件：" + hotal);
//
//        //修改城市的酒店数量
//        cityService.incrCityHotalNumber(hotal.getCid());
//    }
//}
